<?php
    /**
    *file-level documentation
    *@author Name <email@exp.com>
    *26 Jun 2012
    *@copyright Copyright (c) 2012, Tuncay Bakan
    *@package somePackage
    *
    */
    /**
    *
    */
include_once('../config.inc.php');
$sRecipient = DEFAULT_EMAIL;
  $sMailtext= implode("", file("formularTemplates/contactRequest.htt"));
  foreach($_POST as $key=> $val) {
    $sMailtext = str_replace("<$key>", $val, $sMailtext);
  }
  if ($_POST["access"] == "irregeheim") {
    mail($sRecipient, $_POST["subject"], $sMailtext);
  }
  
  $url = $_SERVER['REFER'];
  header("Location : $url");
  exit();
?>